﻿namespace Ongoal.Quotation.Service.Param
{
    /// <summary>
    /// 公共参数
    /// </summary>
    public class PublicParam
    {
        /// <summary>
        /// 条数
        /// </summary>
        public int PageSize { get; set; } = 15;

        /// <summary>
        /// 页数
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 关键字
        /// </summary>
        public string? KeyWord { get; set; }

        /// <summary>
        /// 代码类型集合
        /// </summary>
        public List<string> CodeList { get; set; }

        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        public string Uri { get; set; }

        /// <summary>
        /// 显示字段
        /// </summary>
        public string FiledName { get; set; } = "*";

        /// <summary>
        /// 是否分页
        /// </summary>
        public bool IsPage { get; set; } = true;

        /// <summary>
        /// 查询集合
        /// </summary>
        public List<WhereParam> WhereFiledList { get; set; }

        /// <summary>
        /// 查询语句
        /// </summary>
        public string SqlStr { get; set; }

        /// <summary>
        /// 主表Id
        /// </summary>
        public string MainId { get; set; }

        /// <summary>
        /// 是否查询条件
        /// </summary>
        public bool IsWhere { get; set; } = false;

        /// <summary>
        /// 人员Id集合
        /// </summary>
        public List<int> UserIdList { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public string StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public string EndTime { get; set; }

        #region 数据库备份
        /// <summary>
        /// 连接数据库字符串
        /// </summary>
        public string ConStr { get; set; }

        /// <summary>
        /// 目录
        /// </summary>
        public string FileStr { get; set; }
        #endregion

        /// <summary>
        /// Id集合
        /// </summary>
        public List<int> IdList { get; set; }

        #region 设备台账
        /// <summary>
        /// 设备编码
        /// </summary>
        public string EquipmentCode { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        public string EquipmentName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string EquipmentSpec { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        public List<int> EquipmentType { get; set; }

        /// <summary>
        /// 设备分级
        /// </summary>
        public List<int> EquipmentGrade { get; set; }

        /// <summary>
        /// 设备状态
        /// </summary>
        public List<int> EquipmentStatus { get; set; }

        /// <summary>
        /// 设备位置
        /// </summary>
        public List<int> EquipmentLocation { get; set; }

        /// <summary>
        /// 资产编码
        /// </summary>
        public string AssetCode { get; set; }

        /// <summary>
        /// 运行状态
        /// </summary>
        public string WorkState { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public List<int> State { get; set; }
        #endregion

        /// <summary>
        /// 状态
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 通用编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 通用字符List
        /// </summary>
        public List<string> StringList { get; set; }

        /// <summary>
        /// 通用数字List
        /// </summary>
        public List<int> IntList { get; set; }

        /// <summary>
        /// 通用数字List
        /// </summary>
        public List<int> Int1List { get; set; }

        /// <summary>
        /// 点检任务编码
        /// </summary>
        public string CheckTaskCode { get; set; }

        /// <summary>
        /// 保养任务编码
        /// </summary>
        public string MaintainTaskCode { get; set; }

        /// <summary>
        /// 关闭开始时间
        /// </summary>
        public string CloseStartTime { get; set; }

        /// <summary>
        /// 关闭结束时间
        /// </summary>
        public string CloseEndTime { get; set; }

        /// <summary>
        /// 报修责任人
        /// </summary>
        public string Repair { get; set; }

        /// <summary>
        /// 报修单号
        /// </summary>
        public string RepairOrder { get; set; }

        /// <summary>
        /// 紧急程度
        /// </summary>
        public string Urgency { get; set; }

        /// <summary>
        /// 等级
        /// </summary>
        public string Level { get; set; }
    }
}
